package com.woniu.apiimpl;


import com.woniu.api.HisImageAPI;
import com.woniu.dto.QueryImageDto;
import com.woniu.dto.QueryImageDto;
import com.woniu.param.CreateImageParam;
import com.woniu.param.QueryImageParam;
import com.woniu.service.IHisImageService;
import com.woniu.util.Result;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 检查影像表 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2021-11-11
 */
@RestController
@RequestMapping("/image")
public class HisImageAPIImpl implements HisImageAPI {

    @Resource
    private IHisImageService imageService;


    @Override
    public Result<QueryImageDto> queryImage(QueryImageParam queryImageParam) {
        QueryImageDto QueryImageDto = imageService.queryImage(queryImageParam);
        return Result.bulid(QueryImageDto.class).setData(QueryImageDto);
    }

    @Override
    public Result<QueryImageDto> createImage(CreateImageParam createImageParam) {
        QueryImageDto QueryImageDto = imageService.createImage(createImageParam);
        return Result.bulid(QueryImageDto.class).setData(QueryImageDto);
    }
}

